package org.lanettiesso.dubbo.center.controller;


import org.lanettiesso.dubbo.api.Consumer;
import org.lanettiesso.dubbo.api.Provider;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RegisterController {


    @PostMapping("/register/provider")
    public Object register(@RequestBody Provider provider){

        return "OK";
    }

    @PostMapping("/register/consumer")
    public Object register(@RequestBody Consumer consumer){

        return "OK";
    }
}
